package com.newenergy.wisehome.data.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by dell on 2016/11/29.
 */

@DatabaseTable(tableName = "tb_family_ids")
public class FamilyUnique {
    @DatabaseField(generatedId = true)
    private int id;
    @DatabaseField(columnName = "familyId")
    private String familyId;
    @DatabaseField(columnName = "name")
    private String name="";
    @DatabaseField(columnName = "type")
    private int type = 0;
    @DatabaseField(columnName = "feedback")
    private int feedback = 4777;
    @DatabaseField(columnName = "seed")
    private int seed = 73;

    public FamilyUnique() {
    }

    public FamilyUnique(String familyId) {
        this.familyId = familyId;
    }

    public FamilyUnique(String familyId, int type, int feedback, int seed) {
        this.familyId = familyId;
        this.type = type;
        this.feedback = feedback;
        this.seed = seed;
    }

    public int getId() {
        return id;
    }

    public String getFamilyId() {
        return familyId;
    }

    public void setFamilyId(String familyId) {
        this.familyId = familyId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getFeedback() {
        return feedback;
    }

    public void setFeedback(int feedback) {
        this.feedback = feedback;
    }

    public int getSeed() {
        return seed;
    }

    public void setSeed(int seed) {
        this.seed = seed;
    }

    @Override
    public String toString() {
        return "FamilyUnique{" +
                "id=" + id +
                ", familyId='" + familyId + '\'' +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", feedback=" + feedback +
                ", seed=" + seed +
                '}';
    }

    /* @Override
    public String toString() {
        return "FamilyUnique{" +
                "id=" + id +
                ", familyId='" + familyId + '\'' +
                ", name='" + name + '\'' +
                ", type=" + type +
                '}';
    }*/
}
